package com.yvon.demo;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.annotation.Scope;
import org.springframework.stereotype.Service;

import javax.servlet.http.HttpServletRequest;

@Service
@Scope("prototype")
public class OomService {

    public int i = 1;

    @Autowired
    private HttpServletRequest request;

    public int ssss() {
        String aaaa = request.getHeader("aaaa");
        System.out.println(aaaa);
        i = i+1;
        return i;
    }
}
